Django Tutorial 2

by: subzero, 8 years ago

Last edited: 8 years ago


C:Userssampada kaushalDesktopDjangoProjectmysite>python manage.py startapp webapp
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "C:Python34libsite-packagesdjangocoremanagement__init__.py", line 353, in execute_from_command_line
    utility.execute()
  File "C:Python34libsite-packagesdjangocoremanagement__init__.py", line 327, in execute
    django.setup()
  File "C:Python34libsite-packagesdjango__init__.py", line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "C:Python34libsite-packagesdjangoappsregistry.py", line 85, in populate
    app_config = AppConfig.create(entry)
  File "C:Python34libsite-packagesdjangoappsconfig.py", line 116, in create
    mod = import_module(mod_path)
  File "C:Python34libimportlib__init__.py", line 109, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
  File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2212, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
  File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2224, in _find_and_load_unlocked
ImportError: No module named 'webappdjango'



This error comes up with startapp and runserver commands. I have completely followed the tutorial. Kindly help me with this one.
Thanks in advance.



You must be logged in to post. Please login or register an account.



Something is wanting to import webappdjango. That's definitely not a name we used. We do import webapp, and django though. I wonder if you typoed somewhere possibly and accidentally have import webappdjango in your files.

-Harrison 8 years ago

You must be logged in to post. Please login or register an account.

in settings.py, check if you added a comma after 'webapp' in the INSTALLED_APPS list.

-jaafarskafi1 6 years ago

You must be logged in to post. Please login or register an account.